<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>
<div style="margin-left: 20px;margin-top: 5px;margin-bottom: 5px;margin-right: 20px">
<div style="float: left;width: 670px">
	<s:if test="#request.taskView.procTranRecord.state!='end'">
	<s:if test="#request.taskView.procTranRecord.taskType!='03'">
	<button onclick="commitNotValidForm('newBusinessReq_saveOrCommitTask.action',false);" style="margin-right: 6px">保存</button>
	<button onclick="commitSelForm('newBusinessReq_saveOrCommitTask.action',true);" style="margin-right: 6px">提交</button>
	<button id="commitTaskBt2" type="button" onclick="rollBackForm('flowTaskCommon_toTaskRollBack.action')" style="margin-right: 6px">回退</button>
	<button id="commitTaskBt3" type="button" onclick="transferTaskForm('flowTaskCommon_toTaskTransferAssign.action?flowTaskId=${taskView.procTranRecord.id }');" style="margin-right: 6px">转派</button>
	<button id="commitTaskBt4" type="button" onclick="readToDoTaskForm('flowTaskCommon_toTaskReadingToDo.action?flowTaskId=${taskView.procTranRecord.id }');" style="margin-right: 6px">传阅</button>
	</s:if>
	<s:else>
	<button id="commitTaskBt6" type="button" onclick="commitReadToDoTaskForm('flowTaskCommon_commitTask.action');" style="margin-right: 6px">阅毕</button>
	</s:else>
	
	</s:if>
	<s:else>
	<s:if test="#request.taskView.procTranRecord.taskType!='03'">
	<button id="commitTaskBt5" type="button" onclick="recyclingTaskForm('flowRecyclingTask.action')" style="margin-right: 6px">回收</button>
	</s:if>									
	</s:else>
	<button id="showGraphBtn" type="button" onclick="Echoice.popCenter('flowTaskCommon_printInstGraph.action?procinstId=${procinstId }',800,600)" style="margin-right: 6px">轨迹</button>
	<button id="backHistoryBtn" type="button" onclick="javascript:history.go(-1);" style="margin-right: 6px">返回</button>		
</div>
<div>
	<s:if test="#request.taskView.procTranRecord.state!='end'">
	<s:if test="#request.taskView.procTranRecord.taskType!='03'">
		<button id="commitTaskBt7" type="button" onclick="subNoValidateForm(document.forms[0],'newBusinessReq_toDoProcess.action?flowTaskId=${taskView.procTranRecord.id }&businessRequest.id=${businessRequest.id }')" style="margin-right: 6px">填写进展信息</button>
		<button id="commitTaskBt8" type="button" onclick="subNoValidateForm(document.forms[0],'newBusinessReq_toDoDelay.action?flowTaskId=${taskView.procTranRecord.id }&businessRequest.id=${businessRequest.id }&timeLimit=${taskView.procTranRecord.processStep.timeLimit }')">填写延迟信息</button>
	</s:if>
	</s:if>
</div>
</div>


